#ifndef __INTERRUPT_H
#define __INTERRUPT_H
#include"stdint.h"

typedef void (*intr_handler)(uint8_t);
typedef enum {
	INTR_OFF,
	INTR_ON
}intr_status;
void init_interrupt(void);
intr_status intr_get_status(void);
intr_status intr_set_status(intr_status);
//enable interrupt return the interrupt status before enable
intr_status intr_enable(void);
//disable interrupt return the interrupt status before disable
intr_status intr_disable(void);
//register the outside interrupt handler
void register_intr_handler(uint8_t vec_no,intr_handler h);
#endif
